<template>
    <div>
        <van-nav-bar title="账号设置" left-text="返回" left-arrow @click-left="$router.go(-1)" />
        <van-cell-group>
  <van-cell title="头像"><img :src="user.avatar" alt="" style="width: 30ox;height: 30px;border-radius: 50%;"></van-cell>
  <van-cell title="账号">{{ user.tel.slice(0,3)+'****'+user.tel.slice(7,11)}}</van-cell>
    <van-cell title="昵称">{{ user.nickName }}</van-cell>
</van-cell-group>
    </div>
</template>
<script lang="ts" setup>
const user=JSON.parse(localStorage.getItem('user') as string)

</script>